﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.IO;

namespace hcms.Admin
{
	public partial class UpdateSite : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			Response.Flush();	// ?? 想立即发送，没起作用。

			string str = "UpdateParts.aspx?id=all";	// 调用UpdateParts.aspx，更新板块
			StringBuilder buffer = new StringBuilder(10000);	// 建立临时缓冲
			using (StringWriter stringWriter = new StringWriter(buffer, System.Globalization.CultureInfo.InvariantCulture))
			{
				Server.Execute(str, stringWriter);	// 运行板块控件，输出到临时缓冲中，不输出到当前页面。
			}

			htmprompt.InnerText = "网站更新成功";
		}
	}
}